#define _CRT_SECURE_NO_WARNINGS 1
time
#include <stdio.h>
int main() {
	int n = 12;
	int m =n<<= 1;
	 m=printf("%d\n", m);
	 //原码 反码 补码都是二进制序列
	 // 00000000 00000000 00000000 00001100=  0+0+4+8=12
	 //12在内存中的二进制序列
	 // 00000000 00000000 00000000 00011000  左边抛弃右边补0
	 //00011000  =0+0+0+8+16=24
	  

	return 0;
}

int main()
{
	int i = -10;
	//10000000 00000000 00000000 00001010
	//11111111 11111111 11111111 11110101
	//11111111 11111111 11111111 11110110
	//左移
	//11111111 11111111 11111111 11101100--b在内存中的补码 

	int b = i << 1;
	printf("%d\n", b);
	printf("%d\n", i);


	return 0;
}

int main() {

	int i = -10;
	int a = i >> 1;
	printf("%d\n", a);
	printf("%d\n", i);

	10000000 00000000 00000000 00001010
	11111111 11111111 11111111 11110101 反
	11111111 11111111 11111111 11110110 补
   11111111 11111111 11111111 11110110

	
	return 0;
}